﻿// 权限基础页面JS
(function($) {
    $.PermissionBase = {};

    $.PermissionBase.treegrid = {
        init: function () {
            //var columns = 
            $("#tg-permissionbase").treegrid({
                //iconCls: 'icon-ok',
                rownumbers: true,
                animate: true,
                collapsible: true,
                fitColumns: true,
                url: "treegrid_data2.json",
                method: "get",
                idField: "id",
                treeField: "name"
            });
        }
    };

    $.extend($.PermissionBase, {
        loadPage:function() {
            $.PermissionBase.treegrid.init();
        }
    });

})(jQuery);

$(function() {
    $.PermissionBase.loadPage();
});